'''
Created on Oct 25, 2010

@author: Tom Smith
'''
from TwainControl import TwainBase
import twain
import Tkinter
import os
import time

class ScannerWrapper(object):
    '''
    classdocs
    '''

    def __init__(self, device_name, color_mode="Color", contrast=25, resolution=300):
        '''
        Constructor
        '''
        self.device_name = device_name
        self.color_mode = color_mode
        self.contrast = contrast
        self.F=Tkinter.Frame()
        self.window = self.F.winfo_id()
        self.resolution = resolution

    def setColorMode(self, color_mode):
        self.color_mode = color_mode
    def setContrast(self, contrast):
        self.contrast = contrast
        